﻿namespace ComponentRefCreator.Core
{
    public enum YesNoType
    {
        no,
        yes
    }

    public class ComponentRef
    {
        public YesNoType Primary { get; set; }
        public string Id { get; set; }

        public ComponentRef(string id)
        {
            Id = id;
        }

        public ComponentRef(string id, YesNoType primary):this(id)
        {
            Primary = primary;
        }

        public override string ToString()
        {
            return string.Format("<ComponentRef Id=\"{0}\" Primary=\"{1}\" />", Id, Primary);
        }
    }
}
